<template>
	<view class="formPage uniqueDialog" :class="{noScroll: showdialog}">
		<!-- 自检取样 -->
		<view class="">
			<cLabel title='检测类型' :disabled="true" v-model='fromMsg.fChecktype' :dataText='fromMsg.fChecktype'
				rightIcon='' mode='text' must="unmust" />
				
				<view class="cu-form-group" style="padding-right: 10upx;border-top: 1px solid #dedddd;">
					<view style="display: flex;">
						<image src="@/static/unscope.png" mode=""
							style="width: 30upx;height: 30upx;vertical-align: middle;">
						</image>
						<view class="title">委托单编号</view>
					</view>
					<view @click="EntrynumberFocus()" style="display: flex;line-height: 100upx;align-items: center;">
				
						<view class="picker" :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }"
							v-if="fromMsg.fWitnessno != null && fromMsg.fWitnessno != ''">
							{{ fromMsg.fWitnessno }}
						</view>
						<view class="picker" v-else :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }">
							请选择
						</view>
						<image style="width: 60upx;height: 100upx;padding: 28upx 10upx 28upx 10upx;"
							src="@/static/data1.png"></image>
					</view>
				</view>
		
			<cLabel v-if="companyNature" title='标段名称' :disabled="true" v-model='fromMsg.fCompanyname'
				:dataText='fromMsg.fCompanyname' rightIcon='' mode='text' must="must" />

			<cLabel v-if="!companyNature" title='标段名称' :flagNum="flagNum" :dataText="fromMsg.fCompanyname"
				:selectList="CompanynameList" v-model="fromMsg.fCompanyname" mode="selector4" name="label"
				@total="CompanynameChange" />

			<cLabel title='设备编号' :flagNum="flagNum" :dataText="fromMsg.fEquipname" :selectList="EquipnameList"
				v-model="fromMsg.fEquipname" mode="selector4" name="label" @total="EquipnameChange" />

			<cLabel title='任务单号' :disabled="true" v-model='fromMsg.fTaskno' :dataText='fromMsg.fTaskno' rightIcon=''
				mode='text' must="unmust" placeholder="提交后生成" />
			<cLabel title='检测单位' :disabled="true" v-model='fromMsg.fCheckcompany' :dataText='fromMsg.fCheckcompany'
				rightIcon='' mode='text' must="must" />
			<view class="cu-form-group " style="border-top:1px solid #dedddd ;">
				<view class="cu-form-group-box" style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title" style="padding-right: 28px;">工程部位</view>
				</view>

				<view style="display: flex;position: relative;">
					<input style="height: 50px;padding-right: 15px;" class="" v-model="fromMsg.fEngineeringpartname"
						placeholder="请输入/请选择" name="fEngineeringpartname" @blur="poinblur($event)"></input>
					<view class="pickeres" @click="getWbsToken"></view>
				</view>
			</view>
			<cLabel title='龄期' :disabled="false" v-model='fromMsg.fSpecimenage' :dataText='fromMsg.fSpecimenage'
				rightIcon='' mode='text' must="must" />
			<cLabel title='设计强度等级(Mpa)' :flagNum="flagNum" :dataText="fromMsg.fConcretelevel" :selectList="ConcretelevelList"
				v-model="fromMsg.fConcretelevel" mode="selector4" name="label" @total="ConcretelevelChange" />
			<cLabel title='是否为泵送混凝土' :flagNum="flagNum" :dataText="fromMsg.fConcretetype" :selectList="ConcretetypeList"
				v-model="fromMsg.fConcretetype" mode="selector4" name="label" @total="ConcretetypeChange" />
			<cLabel title='侧面状态' :flagNum="flagNum" :dataText="fromMsg.fSurface" :selectList="SurfaceList"
				v-model="fromMsg.fSurface" mode="selector4" name="label" @total="SurfaceChange" />
			<cLabel title='测试角度' :flagNum="flagNum" :dataText="fromMsg.fAngle" :selectList="AngleList"
				v-model="fromMsg.fAngle" mode="selector4" name="label" @total="AngleChange" />

			<cLabel title='创建人' :disabled="true" v-model='fromMsg.fCreateusername' :dataText='fromMsg.fCreateusername'
				rightIcon='' mode='text' must="must" />
			<cLabel title='创建时间' :disabled="true" v-model='fromMsg.fCreatedates' :dataText='fromMsg.fCreatedates'
				rightIcon='' mode='text' must="must" />
			<!-- <cLabel title='创建时间' over="calc(5em + 15px)" :dataText='fromMsg.fCreatedates' v-model='fromMsg.fCreatedates'
				:disabled="true" mode='date1' must="must" /> -->

			<view class="cu-form-group" style="min-height: 141upx">
			</view>
		</view>


		<view class="wrapper">
			<view class="list">
				<text class="text" @click="clickNum('0')">保存</text>
				<text class="text" @click="clickNum('1')">提交</text>
			</view>
		</view>
		<loading :shadeShow="shadeShow" :shadeClick="true" :backgroundColor="backgroundColor" :width="width"
			:height="height" ref="loadings" :custom="false" :type="1">
		</loading>

		<!-- 多选 -->
		<!-- <multiple-select v-model="show" :data="SpecimenAgeList" labelName="fItemname"
			:default-selected="defaultSelected" @confirm="confirm">
		</multiple-select> -->
		<!-- 多选 -->


		<!-- wbs -->
		<!-- maskClick：点击遮罩层是否关闭
		    showSearch：文字搜索是否展示（模糊查询）
			isStartRadio：是否可以点击那行直接选中元素 （false否、true是）
			diaLog：是否弹窗模式   true:是
			url:接口地址
			formUrl:url接口取数据传参，如http://xxx.xxx?id=bbb中的id
			default:url获取数据默认值，如http://xxx.xxx?id=bbb中的bbb
			header:接口header传参
			formData:接口body传参
			searchCondition:服务端检索时字段（默认为searchName）
			idKey:指定 Object 中 key 的值作为单条数据的唯一id
			nameKey:指定 Object 中 key 的值作为选择器显示的内容
			allKey:需要查询下一级的取值字段
			childrenMark:末级无数据时，显示的字段标识（必传项，否则会报错）
			 -->

		<wbstree ref="sevenqLazy" title="" cancelColor="#757575" confirmColor="#007aff" activeColor="#007aff"
			url="http://1.14.103.201:8300/IOTManagement/zjgxTree/getWbsLists.do" :maskClick="true" :isStartRadio="false"
			:showSearch="false" :diaLog="true" :formUrl="wbsUrlFrom" :default="wbsUrlFrom" :formData="formData"
			searchCondition="FCataName" method="POST" :success="success" idKey="fNodeid" fCompanyid="fCompanyid"
			nameKey="fName" Longname="fLongname" allKey="fNodeid" childrenMark="fHaschildren" @error="error"
			@confirm="confirmWbs" @cancel="cancelWbs" @onlastData="wbsRow" @onrowData="wbsRow" />
		<!-- wbs -->

	</view>
</template>
<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
